package com.ruoyi.mng.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商户信息对象 hz_mer_merchant
 * 
 * @author chenqiang
 * @date 2023-04-26
 */
public class HzMerMerchant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商户号 */
    @Excel(name = "商户号")
    private String merchantId;

    /** 上级商户ID，当该字段为空时，表示为一级商户 */
    @Excel(name = "上级商户ID，当该字段为空时，表示为一级商户")
    private String pMerchantId;

    /** 商户名 */
    @Excel(name = "商户名")
    private String merchantName;

    /** 商户简称 */
    @Excel(name = "商户简称")
    private String merchantShortName;

    /** 商户类型：1-企业；2-个体工商户；3-个人 */
    @Excel(name = "商户类型：1-企业；2-个体工商户；3-个人")
    private Long busiType;

    /** 商户电话 */
    @Excel(name = "商户电话")
    private String merchantTelphone;

    /** 法人姓名 */
    @Excel(name = "法人姓名")
    private String artifName;

    /** 法人身份类型  1--身份证 */
    private Integer artifType;

    /** 法人身份证号 */
    private String artifId;

    /** 法人手机号 */
    private String mobileNo;

    /** 开户行许可证 */
    private String bankLicense;

    /** 开户行地区代码 */
    private String cityId;

    /** 开户行行别编码 */
    private String bankId;

    /** 开户行支行名称,对公账户必填，不提供会导致提现交易失败 */
    private String bankBranchName;

    /** 银行账号 */
    private String account;

    /** 省份编码 */
    private String provinceCode;

    /** 身份名称 */
    private String provinceName;

    /** 城市编码 */
    private String cityCode;

    /** 城市名称 */
    private String cityName;

    /** 区县编码 */
    private String districtCode;

    /** 区县名称 */
    private String districtName;

    /** 商户地址 */
    private String addr;

    /** 联系人 */
    private String linkMan;

    /** 联系人电话 */
    private String linkManTelphone;

    /** 联系人身份证 */
    private String linkManIdCard;

    /** 联系人邮箱 */
    private String linkEmail;

    /** 联系人类型取值范围:LEGAL_PERSON:法人;CONTROLLER:实际控制人; AGENT:代理人;OTHER:其他 */
    private String linkManType;

    /** 交易频率控制方式 0--不限制 1--分钟 2--小时 3--日 */
    private Integer tranFreType;

    /** 交易笔数；结合tran_fre_type一起控制 */
    private Long tranFre;

    /** 最低限额；分 */
    private Long minFee;

    /** 最高限额；分 */
    private Long maxFee;

    /** 商户推广页面 */
    private String publicityPage;

    /** 商户证件类型，取值范围:NATIONAL_LEGAL:营业执照;NATIONAL_LEGAL_MERGE:营业执照(多证合一);INST_RGST_CTF:事业单位法人证书 */
    private String businessLicenseType;

    /** 商户证件编号(企业或者个体工商户 提供营业执照，事业单位提供事证号) */
    private String businessLicense;

    /** 是否强制录入营业执照 1--是 2--否 */
    private Integer doCompulsory;

    /** 新增用户 */
    private Long addUserId;

    /** 入驻时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入驻时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 状态：1--正常 2--暂停 -99--注销 */
    private Integer status;

    /** 密钥类型 1-MD5 2-RSA */
    private Integer merchantSignType;

    /** 商户MD5密钥 */
    private String merchantMd5Key;

    /** 商户RSA公钥 */
    private String merchantRsaPublickKey;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }
    public void setpMerchantId(String pMerchantId) 
    {
        this.pMerchantId = pMerchantId;
    }

    public String getpMerchantId() 
    {
        return pMerchantId;
    }
    public void setMerchantName(String merchantName) 
    {
        this.merchantName = merchantName;
    }

    public String getMerchantName() 
    {
        return merchantName;
    }
    public void setMerchantShortName(String merchantShortName) 
    {
        this.merchantShortName = merchantShortName;
    }

    public String getMerchantShortName() 
    {
        return merchantShortName;
    }
    public void setBusiType(Long busiType) 
    {
        this.busiType = busiType;
    }

    public Long getBusiType() 
    {
        return busiType;
    }
    public void setMerchantTelphone(String merchantTelphone) 
    {
        this.merchantTelphone = merchantTelphone;
    }

    public String getMerchantTelphone() 
    {
        return merchantTelphone;
    }
    public void setArtifName(String artifName) 
    {
        this.artifName = artifName;
    }

    public String getArtifName() 
    {
        return artifName;
    }
    public void setArtifType(Integer artifType) 
    {
        this.artifType = artifType;
    }

    public Integer getArtifType() 
    {
        return artifType;
    }
    public void setArtifId(String artifId) 
    {
        this.artifId = artifId;
    }

    public String getArtifId() 
    {
        return artifId;
    }
    public void setMobileNo(String mobileNo) 
    {
        this.mobileNo = mobileNo;
    }

    public String getMobileNo() 
    {
        return mobileNo;
    }
    public void setBankLicense(String bankLicense) 
    {
        this.bankLicense = bankLicense;
    }

    public String getBankLicense() 
    {
        return bankLicense;
    }
    public void setCityId(String cityId) 
    {
        this.cityId = cityId;
    }

    public String getCityId() 
    {
        return cityId;
    }
    public void setBankId(String bankId) 
    {
        this.bankId = bankId;
    }

    public String getBankId() 
    {
        return bankId;
    }
    public void setBankBranchName(String bankBranchName) 
    {
        this.bankBranchName = bankBranchName;
    }

    public String getBankBranchName() 
    {
        return bankBranchName;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setProvinceCode(String provinceCode) 
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() 
    {
        return provinceCode;
    }
    public void setProvinceName(String provinceName) 
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName() 
    {
        return provinceName;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }
    public void setDistrictCode(String districtCode) 
    {
        this.districtCode = districtCode;
    }

    public String getDistrictCode() 
    {
        return districtCode;
    }
    public void setDistrictName(String districtName) 
    {
        this.districtName = districtName;
    }

    public String getDistrictName() 
    {
        return districtName;
    }
    public void setAddr(String addr) 
    {
        this.addr = addr;
    }

    public String getAddr() 
    {
        return addr;
    }
    public void setLinkMan(String linkMan) 
    {
        this.linkMan = linkMan;
    }

    public String getLinkMan() 
    {
        return linkMan;
    }
    public void setLinkManTelphone(String linkManTelphone) 
    {
        this.linkManTelphone = linkManTelphone;
    }

    public String getLinkManTelphone() 
    {
        return linkManTelphone;
    }
    public void setLinkManIdCard(String linkManIdCard) 
    {
        this.linkManIdCard = linkManIdCard;
    }

    public String getLinkManIdCard() 
    {
        return linkManIdCard;
    }
    public void setLinkEmail(String linkEmail) 
    {
        this.linkEmail = linkEmail;
    }

    public String getLinkEmail() 
    {
        return linkEmail;
    }
    public void setLinkManType(String linkManType) 
    {
        this.linkManType = linkManType;
    }

    public String getLinkManType() 
    {
        return linkManType;
    }
    public void setTranFreType(Integer tranFreType) 
    {
        this.tranFreType = tranFreType;
    }

    public Integer getTranFreType() 
    {
        return tranFreType;
    }
    public void setTranFre(Long tranFre) 
    {
        this.tranFre = tranFre;
    }

    public Long getTranFre() 
    {
        return tranFre;
    }
    public void setMinFee(Long minFee) 
    {
        this.minFee = minFee;
    }

    public Long getMinFee() 
    {
        return minFee;
    }
    public void setMaxFee(Long maxFee) 
    {
        this.maxFee = maxFee;
    }

    public Long getMaxFee() 
    {
        return maxFee;
    }
    public void setPublicityPage(String publicityPage) 
    {
        this.publicityPage = publicityPage;
    }

    public String getPublicityPage() 
    {
        return publicityPage;
    }
    public void setBusinessLicenseType(String businessLicenseType) 
    {
        this.businessLicenseType = businessLicenseType;
    }

    public String getBusinessLicenseType() 
    {
        return businessLicenseType;
    }
    public void setBusinessLicense(String businessLicense) 
    {
        this.businessLicense = businessLicense;
    }

    public String getBusinessLicense() 
    {
        return businessLicense;
    }
    public void setDoCompulsory(Integer doCompulsory) 
    {
        this.doCompulsory = doCompulsory;
    }

    public Integer getDoCompulsory() 
    {
        return doCompulsory;
    }
    public void setAddUserId(Long addUserId) 
    {
        this.addUserId = addUserId;
    }

    public Long getAddUserId() 
    {
        return addUserId;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setMerchantSignType(Integer merchantSignType) 
    {
        this.merchantSignType = merchantSignType;
    }

    public Integer getMerchantSignType() 
    {
        return merchantSignType;
    }
    public void setMerchantMd5Key(String merchantMd5Key) 
    {
        this.merchantMd5Key = merchantMd5Key;
    }

    public String getMerchantMd5Key() 
    {
        return merchantMd5Key;
    }
    public void setMerchantRsaPublickKey(String merchantRsaPublickKey) 
    {
        this.merchantRsaPublickKey = merchantRsaPublickKey;
    }

    public String getMerchantRsaPublickKey() 
    {
        return merchantRsaPublickKey;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("merchantId", getMerchantId())
            .append("pMerchantId", getpMerchantId())
            .append("merchantName", getMerchantName())
            .append("merchantShortName", getMerchantShortName())
            .append("busiType", getBusiType())
            .append("merchantTelphone", getMerchantTelphone())
            .append("artifName", getArtifName())
            .append("artifType", getArtifType())
            .append("artifId", getArtifId())
            .append("mobileNo", getMobileNo())
            .append("bankLicense", getBankLicense())
            .append("cityId", getCityId())
            .append("bankId", getBankId())
            .append("bankBranchName", getBankBranchName())
            .append("account", getAccount())
            .append("provinceCode", getProvinceCode())
            .append("provinceName", getProvinceName())
            .append("cityCode", getCityCode())
            .append("cityName", getCityName())
            .append("districtCode", getDistrictCode())
            .append("districtName", getDistrictName())
            .append("addr", getAddr())
            .append("linkMan", getLinkMan())
            .append("linkManTelphone", getLinkManTelphone())
            .append("linkManIdCard", getLinkManIdCard())
            .append("linkEmail", getLinkEmail())
            .append("linkManType", getLinkManType())
            .append("tranFreType", getTranFreType())
            .append("tranFre", getTranFre())
            .append("minFee", getMinFee())
            .append("maxFee", getMaxFee())
            .append("publicityPage", getPublicityPage())
            .append("remark", getRemark())
            .append("businessLicenseType", getBusinessLicenseType())
            .append("businessLicense", getBusinessLicense())
            .append("doCompulsory", getDoCompulsory())
            .append("addUserId", getAddUserId())
            .append("addTime", getAddTime())
            .append("status", getStatus())
            .append("merchantSignType", getMerchantSignType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("merchantMd5Key", getMerchantMd5Key())
            .append("merchantRsaPublickKey", getMerchantRsaPublickKey())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
